def selection = textArea.selection[0].clone()
textArea.selectedText = textArea.selectedText.toUpperCase()
textArea.addToSelection(selection)
